package day17.homework;

public class Bird extends Animal {
    private double wingSpan;

    public Bird(String name, double wingSpan) {
        super(name);
        this.wingSpan = wingSpan;
    }

    @Override
    public void makeSound() {
        System.out.println("鸟" + "发出啾啾叫声");
    }

    @Override
    public void move() {
        System.out.println("鸟" + "在飞翔");
    }

    public double getWingSpan() {
        return wingSpan;
    }

    public void setWingSpan(double wingSpan) {
        this.wingSpan = wingSpan;
    }
}